#include<bits/stdc++.h>
using namespace std;
#define inf 0x3f3f3f3f3f
const int N=1e5;
inline int read(){
    int f=1,x=0;char c=getchar();
    while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
    while(isdigit(c)){x=x*10+c-'0';c=getchar();}
    return x*f;
}
int T,n;
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    T=read();
    while(T--)cout<<1<<endl;
}